#region Copyright
/// <copyright>
/// Copyright (c) 2007 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace Osh.Teletext
{
	public class PacketS30Format1 : NonDisplayablePacket
	{
		private PageAddress _initialPageAddress;

		public PacketS30Format1(int magazine, int packet, byte[] data, int offset)
			: base(magazine, packet, TeletextDecoder.DecodeDesignationCode(data, offset))
		{
			offset++; // skip designation code

			_initialPageAddress = TeletextDecoder.DecodePageAddress(data, offset);

		}

		public PageAddress InitialPageAddress
		{
			get { return _initialPageAddress; }
		}
	}
}
